// components/receive/li/li.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabType: 0,
    secondTab: 0,
    listData: '',
    isAbolish: 0
  },

  /**
   * 组件的初始数据
   */
  data: {

  },
  /**
   * 组件的方法列表
   */
  methods: {
    goDetail(e) {
      if(this.data.isAbolish){
        wx.navigateTo({
          url: '/pages/receive/invalidDetails/invalidDetails?abolishId=' + e.currentTarget.dataset.id,
        })
        return
      }
      if (this.data.tabType != 2) {
        wx.navigateTo({
          url: '/pages/receive/allDetail/allDetail?claimId=' + e.currentTarget.dataset.id,
        })
      } else {
        if (e.currentTarget.dataset.isoperator) {
          if (e.currentTarget.dataset.status == 1) {
            wx.navigateTo({
              url: '/pages/receive/claim/claim?claimId=' + e.currentTarget.dataset.id,
            })
            return;
          } else if (e.currentTarget.dataset.status == 3) {
            wx.navigateTo({
              url: '/pages/receive/returnedClaim/returnedClaim?claimId=' + e.currentTarget.dataset.id,
            })
            return;
          }
        }

        wx.navigateTo({
          url: '/pages/receive/details/details?claimId=' + e.currentTarget.dataset.id,
        })
      }

    }
  }
})